<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Dotnet2-web 后台管理系统</title>
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->
<%@ include file="/jsp/common/commonJs.jsp"%>
</head>
<body>
<!--header-->
<%@ include file="/jsp/top.jsp"%>
<!--header-->

<!--aside nav-->
<%@ include file="/jsp/left.jsp"%>
<!--aside nav  -->
<section class="rt_wrap content mCustomScrollbar" style="margin-top:10px;">
      <table class="table">
       <tr>
       		<th>属性值</th>
	        <th>属性价格</th>
	        <th>创建时间</th>
	        <th>是否启用</th>
	        <th>是否删除</th>
	        <th>操作</th>
       </tr>
       	<c:forEach items="${fieldPriceList}" var="field">
      		<tr align="center">
      			<td>${field.fieldValue}</td>
		        <td>${field.fieldPrice}</td>
		        <td><fmt:formatDate value="${field.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
		        <td>${field.isUse==1?"<font color=green>是</font>":"<font color=red>否</font>"}</td>
		        <td>${field.isDelete==1?"<font color=green>是</font>":"<font color=red>否</font>"}</td>
		        <td>
		        	<c:if test="${field.isUse==1 && field.isDelete==0}">
		        	<a href="${path}/field/FieldPriceUpdate.do?id=${field.id}">修改</a>
		        	</c:if>
       				<a class="btn btn-warning" href="${path}/field/FieldPriceUp.do?id=${field.id}&isUse=${field.isUse}&foid=${field.fieldId}" >
       					<c:if test="${field.isUse==0}">启用</c:if>
       					<c:if test="${field.isUse==1}">停用</c:if>
       				</a>
		        	<!-- 是否删除判断 -->
       				 <a class="btn btn-warning" href="${path}/field/FieldPriceDel.do?id=${field.id}&isDelete=${field.isDelete}&foid=${field.fieldId}" >
       					<c:if test="${field.isDelete==0}">删除</c:if>
       					<c:if test="${field.isDelete==1}">恢复</c:if>
       				</a>
       				
		        </td>
		    </tr>
      	</c:forEach>
      </table>
	 <aside class="paging">
		  <c:forEach items="${page.pageView}" var="page">
		  		${page}
		  </c:forEach>
	 </aside>
</section>

</body>
</html>
